package com.hoshiicloud.user.entity.company;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公司
 * </p>
 *
 * @author WGJ
 * @since 2019-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Company extends Model<Company> {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("租户编码")
    private String code;

    @ApiModelProperty("租户名称")
    private String name;

    @ApiModelProperty("简称")
    private String shortName;

    @ApiModelProperty("营业执照")
    private String businessLicense;

    @ApiModelProperty("信用代码")
    private String creditCode;

    @ApiModelProperty("开户许可证")
    private String openPermit;

    @ApiModelProperty("税务登记号")
    private String taxation;

    @ApiModelProperty("开票号")
    private String piaoHao;

    @ApiModelProperty("法人姓名")
    private String legalPersonName;

    @ApiModelProperty("身份证号码")
    private String idCard;

    @ApiModelProperty("对公帐号")
    private String bankNumber;

    @ApiModelProperty("银行名称")
    private String bankName;

    @ApiModelProperty("所在支行")
    private String bankAddress;

    @ApiModelProperty("电话号码")
    private String telephone;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("传真")
    private String fax;

    @ApiModelProperty("主页")
    private String home;

    @ApiModelProperty("邮件")
    private String email;

    @ApiModelProperty("公司地址")
    private String address;

    @ApiModelProperty("手机地区编号")
    private String areaCode;

    @ApiModelProperty("二级域名")
    private String privateDomain;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("修改时间")
    @TableField("modified_time")
    private LocalDateTime modifiedTime;

    @ApiModelProperty("修改人")
    @TableField("modified_by")
    private String modifiedBy;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
